import request from "@/utils/request.ts";

// 请求地址
enum API {
  USER_URL = "/api/user/login",
}
//test
export type LoginForm = {
  username: string;
  password: string;
};

export const getApiTest = (data?: LoginForm) => {
  console.log("数据+=" + data?.username);
  console.log("数据+=" + data?.password);
  return request.post<LoginForm, any>(API.USER_URL, data);
};
